Calculating The Perimeter Of Polygons